Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SfBE3uVPNyHBBofmRvNakd
linkml-reference-validator 0.3.0 contains the upstream frontmatter delimiter fix, so the version-gated backport and its reference_cli entry point are removed and callers use the upstream CLI directly. 0.3.0 also treats any cache entry without a current extractor_version stamp as stale and re-fetches and rewrites it during validation. Almost every committed publications/ entry is unstamped, so set trust_cached_entries in the repo configs and direct-validator scripts: validation now reads the reviewed cache as written. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SfBE3uVPNyHBBofmRvNakd
- test_fetch_pubmed_data cached PMID_29727692.md into the repo's
publications/ on every integration run (cassette replay included);
it now caches to tmp_path.
- seed_missing_annotations hard-coded Path("publications") for title
fetches, so fetch_gene_data(base_path=tmp) still wrote publications
into the working directory. It takes publications_dir, and
fetch_gene_data passes base_path / "publications" (unchanged for the
CLI, where base_path is the working directory).
- conftest snapshots git status of publications/ and genes/ at session
start and fails the run if any test changed them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SfBE3uVPNyHBBofmRvNakd
The BAG6 refresh test replaces seed_missing_annotations with a stub that did not accept the new keyword. It now records publications_dir and asserts fetch_gene_data passes base_path / "publications". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SfBE3uVPNyHBBofmRvNakd
|
Claude encountered an error after 1s —— View job I'll analyze this and get back to you. |
1 similar comment
|
Claude encountered an error after 1s —— View job I'll analyze this and get back to you. |
|
Claude finished @cmungall's task in 6m 29s —— View job Review: Upgrade linkml-reference-validator to 0.3.0
Scope note: this PR touches dependency/infra code only — no
🔴 CRITICAL — CI is red, and the test suite never ranBuild and test #38038470526 fails at step 15 Validate gene reviews (scoped). Because this PR touches
Affected files: These are real pre-existing defects that 0.2.1 silently accepted — the new check is a genuine win. E.g. supporting_text: '[UniProtKB keyword mapping for DNA-binding bZIP transcription factor]'
supporting_text: '[InterPro domain mapping for bZIP domain (IPR004827), ...]'A quote made entirely of editorial brackets quotes nothing, which is exactly what 0.3.0 says. But the upgrade can't land until the corpus is clean. Per CLAUDE.md the convention is to fix, never baseline ("fix them and run Second, consequential point: step 15 failing meant step 27 Run test suite was skipped. Every test this PR adds or rewrites — the 🟡 IMPORTANT — the
|
There was a problem hiding this comment.
Infra-only PR (no curation YAML changed), so the GO-term/evidence checks are N/A. Two blocking items:
🔴 CI is red. Build and test run 38038470526 fails at step 15 (Validate gene reviews, widened to all 6,603 files because src/ changed). LRV 0.3.0 adds two error classes for empty supporting_text and reports 18 [ERROR] findings in 11 files: ANOGA/TEP10 (2), MYCTU/Rv0898c, SCHPO/ago1, SCHPO/tim10, human/GCDH, human/OXCT1, human/SFT2D3, human/SLC25A24, human/WIPF1, worm/cebp-2 (7), worm/pink-1. scripts/run_reference_validator.sh only tolerates warning-only output, so the batch fails.
These are real pre-existing defects that 0.2.1 accepted — e.g. genes/worm/cebp-2/cebp-2-ai-review.yaml:128,146,163,180,196 hold bracket-only pseudo-quotes like '[InterPro domain mapping for bZIP domain (IPR004827)]'. The new check is a genuine win; the corpus just has to be cleaned before the upgrade can land. Per CLAUDE.md, fix rather than baseline: supply verbatim excerpts, or move the provenance note into review.reason.
Knock-on effect: step 15 failing meant step 27 'Run test suite' was skipped, so every test this PR adds (the conftest protected-tree guard, test_seed_missing_annotations_uses_given_publications_dir, the trust_cached_entries assertions) is unverified in CI.
🟡 The <0.3 ceiling guarded a private API; <0.4 is unverified. publication_warm.py:401 still calls the private fetcher._materialize(location) and unpacks a 4-tuple, issue #2789 is still open, and no test pins the call shape — so the stated condition for lifting the bound hasn't been met. pyproject.toml:49 and publication_warm.py:397 both still say '<0.3', contradicting the new pin.
🟡 trust_cached_entries may neuter warm-references. scripts/warm_reference_cache.py passes conf/reference_validator_config.yaml, which now sets trust_cached_entries: true — but that script exists precisely to re-fetch entries that have no full text yet (see its docstring). Please confirm LRV 0.3.0's semantics; if trust suppresses re-fetch for any present entry, give the warming path a config without the flag.
Suggestions (non-blocking): restore the ['\n','\r\n'] parametrization on test_in_process_title_quote_and_cache_preservation (CRLF is the case the deleted backport existed for); only escalate session.exitstatus when it is OK; use a symmetric set difference in the conftest guard's diff message; update the '>= 0.2.1' header in run_reference_validator.sh.
Good parts: no dangling references to the deleted modules anywhere, the license-file removal is correct now the vendored code is gone, deleting 417 lines of version-gated monkeypatching is the right call, the publications_dir plumbing closes a real cwd-dependent cache-leak hole with a well-constructed test, and test_repo_configs_trust_committed_cache reading both YAMLs directly is the right guard against config drift.
Full detail: #4552 (comment)
|
Claude finished @cmungall's task in 7m 9s —— View job Re-review: Upgrade linkml-reference-validator to 0.3.0
Scope note: the new commit touches curation YAML, but only to delete/replace unverifiable
✅ The snippet cleanup is done correctly, and I verified what's verifiableTwenty-two placeholder snippets were removed across the 11 flagged files (more than the 18 CI reported — harmless over-cleaning in the same subtrees). The important thing is that no provenance was actually lost: in every
Both genuine replacements check out as verbatim substrings of their cited local source:
History coverage is complete: one record per edited gene (11), schema-shaped like the existing records, all linked to PR #4552. ⏳ BLOCKING-UNKNOWN — I cannot confirm
|
There was a problem hiding this comment.
Re-review after 4b68790 (snippet cleanup). The snippet cleanup is correct: 22 placeholder snippets removed across the 11 flagged files, and in every supported_by deletion the removed entry pointed at the same GO_REF already on original_reference_id, so no provenance was lost. Both genuine replacements verified verbatim — SFT2D3:80-81 matches SFT2D3-uniprot.txt:120 exactly (and citing the DR line is better than the old GO_REF:0000117 pseudo-quote), and WIPF1:928-929 matches WIPF1-deep-research-falcon.md:174. History coverage is complete (11 records, one per edited gene).
Still requesting changes on three items from the last round that no commit addressed:
-
pyproject.toml:49-51 keeps the comment '<0.3: publication_warm.py calls LRV private ReferenceFetcher._materialize; lift the bound once a public API lands' directly above '>=0.3.0,<0.4'. publication_warm.py:401 still calls fetcher._materialize and unpacks a 4-tuple inside an except Exception, and :397-398 still says 'pyproject bounds LRV <0.3 until it lands'. No test pins the call shape. Add a test or justify crossing 0.3, and fix both comments.
-
trust_cached_entries likely neuters just warm-references. scripts/warm_reference_cache.py:28 still passes conf/reference_validator_config.yaml, whose stated purpose (docstring :5-10) is the behaviour the flag suppresses. This PR's own test (tests/test_reference_cache.py:58-80: abstract-only entry, no extractor_version, fetch, then assert bytes unchanged) is suggestive that trust short-circuits the fetch. Please confirm 0.3.0 semantics; if so, give the warming path and the nightly warm-reference-cache workflow a config without the flag.
-
scripts/run_reference_validator.sh:13 still says 'Requires linkml-reference-validator >= 0.2.1'.
Also note I cannot certify the gate: Build and test 38045976514 is still on step 15 (Validate gene reviews, whole corpus) after ~55 min, nothing failed yet but step 27 Run test suite has not started, so this PR's new tests remain unverified in CI.
Non-blocking: conf/reference_validator_config.yaml:63 literal_bracket_patterns exempts any bracket-only pseudo-quote containing a digit/hyphen/slash, which is why TEP10:122, cebp-2:409 and cebp-2:42 survive in files you otherwise cleaned — worth a follow-up issue so the cleanup is not read as 'these files are now free of pseudo-quotes'. supporting_text is optional on Finding, so statements with real content could have been kept without a quote. Earlier suggestions still open: restore the CRLF parametrization on test_in_process_title_quote_and_cache_preservation; only escalate session.exitstatus when it is OK; symmetric set difference in the conftest guard.
(For the record: genes/ARATH/CHL1/CHL1-ai-review.yaml:175 has an empty supporting_text but is correctly not an error — :176 sets full_text_unavailable: true, which run_reference_validator.sh strips before validation.)
Full detail: #4552 (comment)
|
Claude finished @cmungall's task in 4m 47s —— View job Re-review (round 3): Upgrade linkml-reference-validator to 0.3.0
Scope note: the new commit is infra-only (7 files: pyproject, two scripts, one config,
✅ All three 🟡 items from round 2 are addressed1. The text, fmt, pdf_bytes, error = fetcher._materialize(
FullTextLocation(text="Stub full text.", format_hint="text")
)
assert (text, fmt, pdf_bytes, error) == ("Stub full text.", "text", None, False)That is the right scope for a contract test: it fails loudly on an arity or ordering change rather than letting it vanish into the 2. The warm sweep gets its own untrusted config. 3. ⏳ The gate still has not reported (not a finding against the code)Build and test 38049943271 is only on step 5 of 28 (Fetch benchmark baseline) after ~1h of queue/setup; step 15 Validate gene reviews (scoped) — widened to all ~6,600 files because 🔵 SUGGESTIONs
VerdictApproving on the code, with the gate as the outstanding condition. Every item raised in rounds 1 and 2 is now addressed, and addressed in the right way — the private-API bound is guarded by a test rather than by a comment, the warm path has a config whose intent is documented and asserted, and round 2's snippet cleanup removed no provenance (each deleted |
There was a problem hiding this comment.
Round 3: all three 🟡 items from the previous review are addressed, and addressed the right way.
- The <0.4 bound now has a guard rather than a stale rationale. pyproject.toml:49-51 and publication_warm.py:393-398 agree, and tests/test_publication_warm.py:258-270 pins the private _materialize 4-tuple so an arity/ordering change fails loudly instead of vanishing into the except Exception at :401.
- The warm sweep has its own untrusted config. conf/reference_validator_warm_config.yaml is identical to the validation config apart from the header and the absent trust_cached_entries; warm_reference_cache.py:32 points at it; tests assert both the file content and the CLI argument. I also traced the other warming path to be sure: just warm-publications -> publication_warm.py:490-493 builds ReferenceValidationConfig(email=...) directly and reads neither config file, so it was never affected. The nightly workflow calls just warm-references, so it picks the new config up.
- run_reference_validator.sh:13 now says >= 0.3.0.
Outstanding condition, not a finding: the gate has never completed on this branch. Build and test 38049943271 is only on step 5 of 28; step 15 (Validate gene reviews, whole corpus) and step 27 (Run test suite) have not started, and the prior run was superseded before step 15 landed. Please don't merge until both report green. This sandbox has no uv/venv/network, so I could not pre-empt it.
Non-blocking suggestions: (a) confirm that --config replaces rather than merges over the auto-discovered .linkml-reference-validator.yaml, which still sets trust_cached_entries: true at the repo root — if it merges, the new warm config is a no-op and the weekly sweep silently stops upgrading abstract-only entries; an effective-behaviour assertion (stale entry IS refetched under the warm config) would close it better than the argv assertion. (b) Nothing stops the two configs drifting; assert equality-modulo-trust_cached_entries. (c) The contract test pins error to exactly False while the consumer only does 'if error:' — assert not error is less brittle, and only the inline-text branch is covered. (d) Earlier suggestions still open: restore the CRLF parametrization on test_in_process_title_quote_and_cache_preservation; only escalate session.exitstatus when it is ExitCode.OK; symmetric set difference at conftest.py:615. (e) literal_bracket_patterns still exempts bracket-only pseudo-quotes containing a digit/hyphen/slash (TEP10:122, cebp-2:409, :42) — worth a follow-up issue so the cleanup is not read as 'these files are free of pseudo-quotes'.
Full detail: #4552 (comment)
Conflicts were limited to 11 gene reviews whose empty LRV 0.3 evidence snippets were fixed twice: by 4b68790 on this branch and by #4949 on main. Take main's merged version of each and drop 4b68790's history records, which describe the superseded edits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SfBE3uVPNyHBBofmRvNakd
|
Claude finished @cmungall's task in 4m 55s —— View job Re-review (round 4): Upgrade linkml-reference-validator to 0.3.0
Scope note: the only new commit is the merge
✅ Round 3's outstanding condition is resolved — the gate did complete, greenRun 38049943271 (commit So the whole-corpus reference phase under LRV 0.3.0 has now completed cleanly, and every test this PR adds — the ✅ The merge conflict resolution is correct, and no provenance was lostThe merge commit message is accurate: the 11 gene reviews were fixed twice (by
⏳ One genuinely new risk: the merged corpus has never seen 0.3.0The green step 15 above certifies the pre-merge corpus. The merge brought in ~5,500 changed files of curation content from I proxy-scanned the merged tree myself, and it looks clean for both new error classes:
Caveat on that scan: it is ripgrep, not the validator — this sandbox still has no 🔵 SUGGESTIONs
VerdictApproving on the code. Nothing new to request: the merge is a clean resolution that preserves both the infra work and the #4949 provenance, and round 3's one outstanding condition turned out to have been satisfied — step 15 and step 27 both went green at |
There was a problem hiding this comment.
Round 4: approving on the code. The only new commit is the merge of origin/main, and it is a clean resolution.
Round 3's one outstanding condition is resolved: run 38049943271 (commit 065fcd5) completed with job test (3.12) success, and both steps I had flagged as never-reporting passed — step 15 'Validate gene reviews (scoped)' (widened to just validate-all by the infra change) and step 27 'Run test suite'. So the whole-corpus LRV 0.3.0 reference phase has now completed cleanly and every test this PR adds is verified in CI.
The merge conflict resolution checks out. The 11 gene reviews fixed twice (by 4b68790 here and by #4949 on main) are now byte-identical to main — git diff origin/main HEAD over those folders is empty, and there are no conflict markers in the tree. History coverage survives via #4949: each of the 11 genes carries a 2026-10-12T0938..Z-codex record, and none of the branch's superseded T1033..Z records is left orphaned. Dropping those is correct: the append-only rule governs records that have landed, and these never reached main — keeping them would assert edits the files no longer contain. All round-3 infra fixes came through intact (>=0.3.0,<0.4 with the rewritten rationale, the trust-free warm config and the script pointing at it, the >= 0.3.0 header).
One genuinely new risk, mechanical rather than a finding: the green step 15 certifies the pre-merge corpus, and the merge brought in ~5,500 changed files of curation content that main has only ever validated under 0.2.1. So run 38273000945 is a fresh gate — please let it report green before merging. It will widen correctly (main.yaml:237-239), and #4940 only touched the merge-queue schema-batch step. My own ripgrep scan of the merged tree suggests it will pass: exactly one literally-empty supporting_text corpus-wide (ARATH/CHL1:175, which carries full_text_unavailable: true and is stripped), and all 17 bracket-only pseudo-quotes I can find are exempted by literal_bracket_patterns because each contains a digit, hyphen, period or semicolon. That is ripgrep, not the validator — no uv/venv/network in this sandbox — so reassuring, not certifying.
Suggestions only, none blocking: (a) the scan sharpens the standing literal_bracket_patterns point — the exemption visibly carries pure narrator commentary that quotes nothing, e.g. mouse/App:4545 '[Falcon synthesis describes APP as a receptor-like scaffold...]' and SCHPO/tim10:347 '[No S. pombe-specific experimental papers on tim10 were identified...]', the latter in a file the predecessor commit had already cleaned; worth filing the follow-up issue with these line refs so the cleanup is not later read as 'the corpus is free of pseudo-quotes'. (b) Carried forward from round 3: confirm --config replaces rather than merges over the root .linkml-reference-validator.yaml (which still sets trust_cached_entries: true and carries the email the warm config lacks), ideally via an effective-behaviour assertion that a stamp-less entry IS refetched under the warm config; assert the two conf/ configs equal-modulo-trust_cached_entries; relax 'error == False' to 'assert not error'; restore the CRLF parametrization; only escalate session.exitstatus when it is ExitCode.OK; symmetric set difference at conftest.py:615.
Full detail: #4552 (comment)
|
🐑 PR Shepherd (action run) — Attempted to repair this approved-but-conflicting branch with a local merge from What I ran
Why it is blocked: the same upgrade landed on
|
|
Closing as superseded. The one part of this branch not on Generated by Claude Code |
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01SfBE3uVPNyHBBofmRvNakd